package com.lichuang.dedao.curriculum.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 课程
 * </p>
 *
 * @author xiaosong
 * @since 2019-07-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Curriculum对象", description = "课程")
public class Curriculum implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "课程id")
    @TableId(value = "curriculum_id", type = IdType.AUTO)
    private Integer curriculumId;

    @ApiModelProperty(value = "课程名字")
    private String name;

    @ApiModelProperty(value = "课程简介")
    private String intro;

    @ApiModelProperty(value = "课程图片")
    private String img;

    @ApiModelProperty(value = "课程老师id")
    private Integer teacherId;

    @ApiModelProperty(value = "课程亮点")
    private String brightspot;

    @ApiModelProperty(value = "课程类型id")
    private Integer curriculumTypeId;

    @ApiModelProperty(value = "课程类型父id")
    private Integer curriculumTypeParentid;

    @ApiModelProperty(value = "课程价格")
    private BigDecimal price;

    @ApiModelProperty(value = "试听数量")
    private Integer auditionCount;

    @ApiModelProperty(value = "课程总数量")
    private Integer total;

    @ApiModelProperty(value = "课程已讲数量")
    private Integer alreadyCount;

    @ApiModelProperty(value = "课程状态")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @TableField("Column_6")
    private String column6;

    @TableField(exist = false)
    private List<CurriculumChapter> curriculumChapters;

    @TableField(exist = false)
    private Teacher teacher ;


}
